<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
     //创建对象
     var obj={
         name:"chengchao",
         age:18
     }
     //读取对象的属性
     console.log(obj.name);
     /* 创建函数
     function 函数名（）{
         coding...
     }  
     调用函数
     函数名（）*/
     /* es5 */
    function b(){
        console.log("hello world")
    }
    b();
    //es6的箭头函数
    var c=()=>{
        console.log("c");
    }
    c();
    </script>
</body>
</html>